package com.yixing.demo.service;

import com.yixing.demo.mapper.UserMapper;
import com.yixing.demo.model.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {
    @Resource
    UserMapper userMapper;

    public User login(String username) {
        return userMapper.login(username);
    }

    public Integer register(User user) {
       return userMapper.register(user);
    }
}
